<?php
/**
 * Created by JetBrains PhpStorm.
 * User: quangvu
 * Date: 5/25/13
 * Time: 10:25 AM
 * To change this template use File | Settings | File Templates.
 */

class BaseLoader {

    public function __construct(){

    }

    public function bean($names) {
        if(!is_array($names) || count($names)==0) {
            return false;
        }else {
            $file = null;
            foreach($names as $name) {
                $file = PATH_WP_OBJECTS_MAPPED . $name . '.php';
                if(is_readable($file)) {
                    require_once($file);
                }
            }
            return true;
        }
    }
}